We have databases used locally. In a post open event of one, I am using ws.OpenDatabase to open another database in the UI. This same code has worked for 6+ years in R6, so not sure what is going on.
More details: We have this code in a postopen database script, and it runs fine on the server, but not locally regardless of who runs it:
If db.server = "" Then
Call ws.OpenDatabase( "", "c:\notes\data\toolkit\customer.nsf")
Else
Call ws.OpenDatabase(db.Server, "toolkit\customer.nsf")
End If
It crashes on the ws.OpenDatabase line.
In order to test whether it was just being in the Database script, I put the same code in a separate database into an agent run via Action menu that tried to open a different database, and it too crashed on that ws.OpenDatabase line.
It is important to Note that the same code works when run on a server replica. This is experienced by all of our users who have performed the R8 upgrade, including people who have Manager, Editor, or Author access to the databases. I'm going to include below the NSD text. Any insight would be appreciated.
As you see, the error states ACCESS_VIOLATION, but I have full manager rights, and again same code that has been working for YEARS.
############################################################
### FATAL THREAD 1/20 [ nlnotes: 13f4: 1420]
### FP=0x0013bda4, PC=0x00c5f541, SP=0x0013bda4
### stkbase=00140000, total stksize=212992, used stksize=16988
### EAX=0x00000008, EBX=0x00000000, ECX=0x00000003, EDX=0x00000002
### ESI=0x00000000, EDI=0x0013c0f0, CS=0x0000001b, SS=0x00000023
### DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010202
Exception code: c0000005 (ACCESS_VIOLATION)
############################################################
@[ 1] 0x00c5f541 nnotesws.ViewScriptGetProgrammableObject@4+17 (94aab14)
@[ 2] 0x009f78dc nnotesws.FindViewWndObj@16+60 (505b014,0,0,0)
@[ 3] 0x009f3bcb nnotesws.CLSXUIWorkspaceWnd::GetPropA+875 (505b014,13bfb4,13c004,13bfd0)
@[ 4] 0x005c2df0 nnotesws.LSXUICLASSCONTROL@16+320 (3f8628,107,13bfb4,13c004)
@[ 5] 0x00599059 nnotesws._tag_NotesADTControl::ClassControl+25 (505b131,3f8628,107,13bfb4)
@[ 6] 0x600504ad nnotes.LSsInstance::AdtCallBack+269 (3f8628,5c2cb0,107,6c682f0)
@[ 7] 0x60062c6b nnotes.LScObjCli::GetPropertyData+139 (6c682b0,5e3,138209,49)
@[ 8] 0x60066bf7 nnotes.LScObjCli::GetProperty+87 (6c682b0,68a4188,1ec0,13c0f0)
@[ 9] 0x60b30ff3 nnotes.LSDcCursTypeCursor::GetValue+387 (84f8588,13c0f0,1,0)
@[10] 0x00f35bfb nnotesws.LSEcCIVarEnum::CacheValues+43 (6ccd558,13c1e0,6800001,13c128)
@[11] 0x00f30955 nnotesws.LSEcSAVarEnum::Next+53 (6ccd510,6800001,680299c,13c19c)
@[12] 0x00f30b2a nnotesws.LSEcSAVarEnum::DoMethod+138 (6ccd518,703,6800001,680299c)
@[13] 0x00563cd4 nnotesws.LSEcSAScrInt::ClassControl+228 (6ccd518,67f44c8,109,13c1c4)
@[14] 0x600504ad nnotes.LSsInstance::AdtCallBack+269 (67f44c8,57c8d0,109,6c3e920)
@[15] 0x60066c3d nnotes.LScObjCli::ProdMethodCall+61 (6c3e8e0,703,684214c,10001)
@[16] 0x60066b42 nnotes.LSsThread::AdtDoProdCallout+162 (6802768,6c3e8e0,10001,6842100)
@[17] 0x60066a5d nnotes.LSsThread::AdtCallMethod+45 (2,68490fc,1,2)
@[18] 0x6002177a nnotes.LSsThread::NRun+5898 (6802768,682e6d8,6802768,13c370)
@[19] 0x60021ef6 nnotes.LSsThread::Run+182 (6802768,67f44c8,13c474,3)
@[20] 0x60025d64 nnotes.LSsThread::ExecuteEvent+244 (6802768,87d5260,68028bc,3)
@[21] 0x6002497d nnotes.LSsInstance::RunEvent+301 (67f44c8,6cf5cd0,a06,3)
@[22] 0x60026179 nnotes.LSsInstance::RaiseEvent+89 (67f44c8,6cf5cd0,a06,3)
@[23] 0x00f2863b nnotesws.LSEIcSaRoot::DoRaiseEventInternal+59 (6cf5cd0,a06,3,13c474)
@[24] 0x00f24bcd nnotesws.LSEIcClInterfaceObject::RaiseEventInternal+45 (8f1643e,a06,3,13c474)
@[25] 0x00f234e3 nnotesws.LSEIcClOutline::EvItemTextFetch+99 (8f16462,0,1,13c4dc)
@[26] 0x009a0dd7 nnotesws.NotesOutlineObserver::RequestText+135 (16630,9469d5c,13c504,ff)
@[27] 0x009a3844 nnotesws.CNotesOutlineList::PaintItem+68 (8f16a14,5e0110ea,9469d5c,13c688)
@[28] 0x005ebcc7 nnotesws.CNEMListOD::PaintItemEnumerator+759 (1,fecc98,13c70c,9469d5c)
@[29] 0x0058e8c6 nnotesws.CNEMListOD::EnumerateItemRects+1062 (0,5eb9d0,0,13c7a4)
@[30] 0x005ec47c nnotesws.CNEMListOD::Paint+236 (8f16a14,5e0110ea,13c8ac,b0956)
@[31] 0x0058f80f nnotesws.CNEMListOD::ListODListWndProc+735 (0,b0956,f,0)
@[32] 0x0058f1b7 nnotesws.ListODListWndProc@16+247 (0,f,0,0)
[33] 0x77d48734 USER32.GetDC+109 (58f0c0,b0956,f,0)
[34] 0x77d48816 USER32.GetDC+335 (0,58f0c0,b0956,f)
[35] 0x77d4b4c0 USER32.DefWindowProcW+388 (1c77a58,f,0,0)
[36] 0x77d4b50c USER32.DefWindowProcW+464 (13ca0c,18,1c77a58,f)
[37] 0x7c90eae3 ntdll.KiUserCallbackDispatcher+19 (13cae4,0,13ca9c,77d5e097)
[38] 0x77d48a10 USER32.DispatchMessageW+15 (13cae4,77d5f39a,68,13cae4)
[39] 0x77d5e097 USER32.IsDialogMessageW+219 (170858,1c77a58,14085c,0)
@[40] 0x00691457 nnotesws.ModelessWindowDispatch+247 (4,3f70c8,8f15114,0)
@[41] 0x006915a4 nnotesws.NEMMainLoopIDE@8+260 (0,0)
@[42] 0x009a83df nnotesws.CLSDDocument::LoadObject+175 (8f10001,8f15414)
@[43] 0x009a8b7d nnotesws.CLSDDocument::AddScriptObject+477 (8f155d4,8f1517c)
@[44] 0x009a76ac nnotesws.CLSUIDocument::RunScript+364 (8f15514,34c)
@[45] 0x605f29e7 nnotes.CRawActionLotusScript::Run+679 (335,8f15114)
@[46] 0x605eee5a nnotes.CRawAction::Run+58 (0,8f15014)
@[47] 0x605efa6d nnotes.CRawAction::Execute+221 (9233874,2ddf)
@[48] 0x605e7dc6 nnotes.CAssistant::RunAlone+22 (8f14814,8f15014)
@[49] 0x605ecdf6 nnotes.CAssistant::Run+3590 (8f14814,13d79c)
@[50] 0x00998842 nnotesws.RunAssistantEx@28+482 (0,9233ebc,0,1,0,0,0)
@[51] 0x00f5bfcd nnotesws.CThreadAssistTwi::WorkItem+317 (60,9233e14,0,60013939,0,0,0)
@[52] 0x006df7c4 nnotesws.CTwi::TwiMain+644 (0,0,13de68,0,0,0,0)
@[53] 0x00f5c3df nnotesws.AssistantRunAgent@12+655 (13e014,14c92,0)
@[54] 0x00f5caaf nnotesws.AssistantRunMenuAgent@16+351 (2bf2ab4,b42c220,4006401e,0)
@[55] 0x00a35051 nnotesws.CDatabaseSelection::Command+3633 (8f74014,b42c220,13e590,8f74014)
@[56] 0x00a3678a nnotesws.CDBWindowSelection::Command+778 (8f74014,13e57c,0,94b7414)
@[57] 0x0069089f nnotesws.CSelectionManager::ProcessCommand+1167 (1,4006403b,0,0)
@[58] 0x006908f1 nnotesws.NEMProcessCommand@12+33 (4006403b,0,0)
@[59] 0x00a2e446 nnotesws.ProcessWksMsgExt@32+4326 (22,12600000,20000,60e30000,0,0,0,0)
@[60] 0x00553f9c nnotesws.CheckWksMQ@4+220 (0)
@[61] 0x00546c00 nnotesws.CDeskSubprogram::SubMessageProc+5744 (503c614)
@[62] 0x00544d09 nnotesws.MainWndProc@16+7881 (c03f2,570,0,0)
[63] 0x77d48734 USER32.GetDC+109 (542e40,c03f2,570,0)
[64] 0x77d48816 USER32.GetDC+335 (0,542e40,c03f2,570)
[65] 0x77d489cd USER32.GetWindowLongW+295 (13f7b4,0,13f7d4,5d9e66)
[66] 0x77d48a10 USER32.DispatchMessageW+15 (13f7b4,1,b03e6,540000)
@[67] 0x005d9e66 nnotesws.NEMMainLoop@4+742 (4013d0)
@[68] 0x0040197b nlnotes.WinMain@16+1451 (6190b0,0,182326,0)
@[69] 0x00401e39 nlnotes.WinMainCRTStartup+389 (0,0,7ffdb000,8054a6ed)
[70] 0x7c816fd7 kernel32.RegisterWaitForInputIdle+73 (401cb4,0,0,0)
############################################################
 
Feedback number WEBB7K3KET created by ~Samuel Opkiteroopsi on 10/03/2008


|